package com.adsdk.android.activity;




public class Utils {

  
    public static int convertToScreenPixels(int dipPixels, double density) {
        
        return (int) convertToScreenPixels((double) dipPixels, density);
    }
    
    public static double convertToScreenPixels(double dipPixels, double density) {
        return density > 0.0D ? dipPixels * density : dipPixels;
    }
    
    public static String pasreUrl(String url) {
        
        if (url == null) {
            url = "www.zhuamob.com";
        }
        
        String result = url.replace("\\", "").replace("[\"", "").replace("\"]", "");
        if (!result.contains("http:")) {
            result = result.replace("ttp:", "http:");
        }
        return result;
    }
  
}
